home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / transpose.z / transpose
Encoding:
Text File  |  2002-10-03  |  1.6 KB  |  49 lines

  1. TRANSPOSE(3I)                                         Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      TTRRAANNSSPPOOSSEE - Transposes an array of rank two
  6.  
  7. SSYYNNOOPPSSIISS
  8.      TTRRAANNSSPPOOSSEE (([MMAATTRRIIXX==]_m_a_t_r_i_x))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, IRIX systems
  12.  
  13.      CF90, MIPSpro 7 Fortran 90
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      Fortran
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      The TTRRAANNSSPPOOSSEE intrinsic function transposes a two-dimensional array.
  20.      It accepts the following argument:
  21.  
  22.      _m_a_t_r_i_x    May be of any type and must have rank two
  23.  
  24.      TTRRAANNSSPPOOSSEE is a transformational function.  The name of this intrinsic
  25.      cannot be passed as an argument.
  26.  
  27. RREETTUURRNN VVAALLUUEESS
  28.      The result is an array of the same type and type parameters as _m_a_t_r_i_x,
  29.      with rank two, and shape (_n, _m), where (_m, _n) is the shape of _m_a_t_r_i_x.
  30.      Element (_i, _j) of the result has the value _m_a_t_r_i_x(_j,_i), where
  31.      _i = 1, 2, ..., _n and _j = 1, 2, ..., _m.
  32.  
  33. EEXXAAMMPPLLEESS
  34.      Assume that array AA is as follows:
  35.  
  36.           | 1 2 3 |
  37.           | 4 5 6 |
  38.           | 7 8 9 |
  39.  
  40.      TTRRAANNSSPPOOSSEE((AA)) has the following value:
  41.  
  42.           | 1 4 7 |
  43.           | 2 5 8 |
  44.           | 3 6 9 |
  45.  
  46. SSEEEE AALLSSOO
  47.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  48.      man page.
  49.